function doSomething(args, callback) {
  somethingComplicated(args);
 process.nextTick(callback);
}
doSomething(null,function onEnd() {
 compute();
});

function somethingComplicated(){
 console.log("this is first function!");
}
function compute() {
 console.log("this is second function,callback");
}


